/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.entidades;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "bdagrupados.historicoventasofertanegocio")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Historicoventasofertanegocio.findAll", query = "SELECT h FROM Historicoventasofertanegocio h"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonNegocio", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonNegocio = :hvonNegocio"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonOferta", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonOferta = :hvonOferta"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonAnoventa", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonAnoventa = :hvonAnoventa"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonMesventa", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonMesventa = :hvonMesventa"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonDiaventa", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonDiaventa = :hvonDiaventa"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonNumVentas", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonNumVentas = :hvonNumVentas"),
    @NamedQuery(name = "Historicoventasofertanegocio.findByHvonNumCupones", query = "SELECT h FROM Historicoventasofertanegocio h WHERE h.hvonNumCupones = :hvonNumCupones")})
public class Historicoventasofertanegocio implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "hvon_negocio")
    @Id
    private BigInteger hvonNegocio;
    @Column(name = "hvon_oferta")
    private Integer hvonOferta;
    @Column(name = "hvon_anoventa")
    private Integer hvonAnoventa;
    @Column(name = "hvon_mesventa")
    private Integer hvonMesventa;
    @Column(name = "hvon_diaventa")
    private Integer hvonDiaventa;
    @Basic(optional = false)
    @NotNull
    @Column(name = "hvon_num_ventas")
    private long hvonNumVentas;
    @Column(name = "hvon_num_cupones")
    private BigInteger hvonNumCupones;

    public Historicoventasofertanegocio() {
    }

    public BigInteger getHvonNegocio() {
        return hvonNegocio;
    }

    public void setHvonNegocio(BigInteger hvonNegocio) {
        this.hvonNegocio = hvonNegocio;
    }

    public Integer getHvonOferta() {
        return hvonOferta;
    }

    public void setHvonOferta(Integer hvonOferta) {
        this.hvonOferta = hvonOferta;
    }

    public Integer getHvonAnoventa() {
        return hvonAnoventa;
    }

    public void setHvonAnoventa(Integer hvonAnoventa) {
        this.hvonAnoventa = hvonAnoventa;
    }

    public Integer getHvonMesventa() {
        return hvonMesventa;
    }

    public void setHvonMesventa(Integer hvonMesventa) {
        this.hvonMesventa = hvonMesventa;
    }

    public Integer getHvonDiaventa() {
        return hvonDiaventa;
    }

    public void setHvonDiaventa(Integer hvonDiaventa) {
        this.hvonDiaventa = hvonDiaventa;
    }

    public long getHvonNumVentas() {
        return hvonNumVentas;
    }

    public void setHvonNumVentas(long hvonNumVentas) {
        this.hvonNumVentas = hvonNumVentas;
    }

    public BigInteger getHvonNumCupones() {
        return hvonNumCupones;
    }

    public void setHvonNumCupones(BigInteger hvonNumCupones) {
        this.hvonNumCupones = hvonNumCupones;
    }
    
}
